package com.yaowk.sfp.slideshow.server.entity;

import com.yaowk.sfp.common.db.GeneratorNote;
import com.yaowk.sfp.common.db.SortedEntity;
import lombok.Getter;
import lombok.Setter;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Column;
import javax.persistence.Entity;

/**
 * 轮播图实体
 *
 * @author 小凯
 **/
@Entity
@Getter
@Setter
@DynamicUpdate
@DynamicInsert
public class YkSlideshow extends SortedEntity<Long> {

    @GeneratorNote("轮播图名称")
    private String name;
    @GeneratorNote("图片")
    @Column(columnDefinition = "LONGTEXT")
    private String image;
    @GeneratorNote("链接地址")
    private String linkUrl;
    @GeneratorNote("内容")
    private String content;
    @GeneratorNote("状态")
    private Byte status;
}
